import { createSlice } from '@reduxjs/toolkit'

export const username = createSlice({
  name: 'counter',
  initialState: {
    info:null
  },
  reducers: {
    user:(state, action)=>{
        action.payload(state)
    }
  
  }
})
// Action creators are generated for each case reducer function
export const {user} = username.actions

export default username.reducer